package com.achievo.reportserver.config;

import org.apache.commons.configuration.Configuration;


/**
 * 
 * Report Server
 * write at Jan 21, 2010
 * @author <a href="mailto:chinaoryx@gmail.com">Hyman.Zhang (Zhang Haipeng)</a>
 * @version 1.0
 * 
 *
 */
public class ConfigFactory {
	
	private static Configuration serverConfig = null;
	private static Configuration reportConfig = null;
	private static Configuration reportRootConfig = null;
	private static Configuration datasourceConfig = null;
	
	
	public static String SERVER_REAL_PATH = null;
	
	
	
	public static Configuration getDatasourceConfig() {
		return datasourceConfig;
	}
	public static void setDatasourceConfig(Configuration datasourceConfig) {
		ConfigFactory.datasourceConfig = datasourceConfig;
	}
	private static int reloadInterval;
	
	public static int getReloadInterval() {
		return reloadInterval;
	}
	public static void setReloadInterval(int reloadInterval) {
		ConfigFactory.reloadInterval = reloadInterval;
	}
	public static Configuration getReportRootConfig() {
		return reportRootConfig;
	}
	public static void setReportRootConfig(Configuration reportRootConfig) {
		ConfigFactory.reportRootConfig = reportRootConfig;
	}
	public static Configuration getServerConfig() {
		return serverConfig;
	}
	public static void setServerConfig(Configuration serverConfig) {
		ConfigFactory.serverConfig = serverConfig;
	}
	public static Configuration getReportConfig() {
		return reportConfig;
	}
	public static void setReportConfig(Configuration reportConfig) {
		ConfigFactory.reportConfig = reportConfig;
	}
	
}
